Tables [dbo].[LicenseMain]
Properties
PropertyValue
Created10:31:26 AM Tuesday, March 02, 2010
Last Modified11:40:03 AM Monday, February 20, 2012
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_LicenseMain: LicenseMasterKeyForeign Keys FK_LicenseMain_LicenseMaster: [dbo].[LicenseMaster].LicenseMasterKeyLicenseMasterKeyuniqueidentifier16
No
Foreign Keys FK_LicenseMain_License: [dbo].[License].LicenseKeyIndexes IX_LicenseMain_LicenseKey: LicenseKeyLicenseKeyuniqueidentifier16
No
Foreign Keys FK_LicenseMain_OrganizationMain: [dbo].[OrganizationMain].OrganizationKeyIndexes IX_LicenseMain_OrganizationKey: OrganizationKeyOrganizationKeyuniqueidentifier16
No
NamedLicenseCountint4
No
((0))
UnnamedLicenseCountint4
No
((0))
EffectiveDatedatetime8
No
ExpirationDatedatetime8
Yes
Checksumnvarchar(250)500
No
((0))
MarkedForDeleteOndatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_LicenseMain: LicenseMasterKeyPK_LicenseMainLicenseMasterKey
Yes
IX_LicenseMain_LicenseKeyLicenseKey
IX_LicenseMain_OrganizationKeyOrganizationKey
Foreign Keys Foreign Keys
NameColumns
FK_LicenseMain_LicenseLicenseKey->[dbo].[License].[LicenseKey]
FK_LicenseMain_LicenseMasterLicenseMasterKey->[dbo].[LicenseMaster].[LicenseMasterKey]
FK_LicenseMain_OrganizationMainOrganizationKey->[dbo].[OrganizationMain].[OrganizationKey]
SQL Script
CREATE TABLE [dbo].[LicenseMain]
(
[LicenseMasterKey] [uniqueidentifier] NOT NULL,
[LicenseKey] [uniqueidentifier] NOT NULL,
[OrganizationKey] [uniqueidentifier] NOT NULL,
[NamedLicenseCount] [int] NOT NULL CONSTRAINT [DF_LicenseMain_NamedLicenseCount] DEFAULT ((0)),
[UnnamedLicenseCount] [int] NOT NULL CONSTRAINT [DF_LicenseMain_UnnamedLicenseCount] DEFAULT ((0)),
[EffectiveDate] [datetime] NOT NULL,
[ExpirationDate] [datetime] NULL,
[Checksum] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF_LicenseMain_Checksum] DEFAULT ((0)),
[MarkedForDeleteOn] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[LicenseMain] ADD CONSTRAINT [PK_LicenseMain] PRIMARY KEY CLUSTERED ([LicenseMasterKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMain_LicenseKey] ON [dbo].[LicenseMain] ([LicenseKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_LicenseMain_OrganizationKey] ON [dbo].[LicenseMain] ([OrganizationKey]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LicenseMain] ADD CONSTRAINT [FK_LicenseMain_License] FOREIGN KEY ([LicenseKey]) REFERENCES [dbo].[License] ([LicenseKey])
GO
ALTER TABLE [dbo].[LicenseMain] ADD CONSTRAINT [FK_LicenseMain_LicenseMaster] FOREIGN KEY ([LicenseMasterKey]) REFERENCES [dbo].[LicenseMaster] ([LicenseMasterKey])
GO
ALTER TABLE [dbo].[LicenseMain] ADD CONSTRAINT [FK_LicenseMain_OrganizationMain] FOREIGN KEY ([OrganizationKey]) REFERENCES [dbo].[OrganizationMain] ([OrganizationKey])
GO
Uses